<template>
	<view>
		<uNavbar :title="titles" :bgColor="backgroundColor"></uNavbar>
		<!-- 商品 -->
		<view class="commodity flex_Z">
			<view class="commodity_top">
				<image class="tupians" :src="threeMoxing" mode="aspectFit"></image>
			</view>
			<view class="commodity_btm flex_ZC">
				<view class="commodity_btm_box">
					<view class="commodity_name flex_c">
						<text :class="checkLength(this.productName)>8 ? 'namess':'names'">{{this.productName}}</text>
					</view>
					<view class="series flex_ld">
						<view class="series_box flex_ld">
							<text>系列</text>
							<text>{{infoDetail.series_name}}</text>
						</view>
						<view class="series_box flex_dq">
							<text>限量</text>
							<text>{{infoDetail.circulation == 0 ?'不限量':infoDetail.circulation + '份'}}</text>
						</view>
					</view>
				</view>
			</view>
		</view>
		<!-- 发行方 -->
		<view class="issuer flex_Z">
			<view class="issuer_box flex_dq">
				<image :src="infoDetail.thumb" mode="aspectFill"></image>
				<view class="issuer_btm flex_Z">
					<text class="f28">发行方</text>
					<text class="f24 c9">{{infoDetail.brand_name}}</text>
				</view>
			</view>
		</view>
		<!-- 集售信息 -->
		<view ew class="navbar flex_Z">
			<view class="navbar_top flex_dq">
				<view class="navbar_box" v-for="(item,index) in navberlist" :key="item.id" @click="changeNav(item.id)">
					<text :class="item.id == navIds?'nava_active':''">{{item.name}}</text>
				</view>
			</view>
			<view class="sales_box flex_Z" v-if="navIds == 1">
				<view class="sales flex_ld">
					<text>起始价格</text>
					<text>{{infoDetail.start_price}}</text>
				</view>
				<view class="sales flex_ld">
					<text>价格幅度</text>
					<text>±{{infoDetail.price_range_proportion}}%</text>
				</view>
				<view class="sales flex_ld">
					<text>开始时间</text>
					<text> {{$u.timeFormat(infoDetail.market_time, 'yyyy-mm-dd-hh:MM')}} </text>
				</view>
				<view class="sales flex_ld">
					<text>集售规则</text>
				</view>
				<view class="sales flex_ld">
					<text>{{infoDetail.rule_info}}</text>
				</view>
			</view>
			<view class="chartu" v-if="navIds == 2">
				<view class="charts-box">
					<qiun-data-charts type="line" :opts="opts" :chartData="chartData" />
				</view>
			</view>
			<view class="describe_ntm flex_c" v-if="navIds == 3">
				<rich-text class="quanyi" :nodes="nodeCentent3"></rich-text>
			</view>
		</view>
		<!-- 藏品描述 -->
		<!-- 		<view class="describe_box">
			<view class="describe_tit flex_dq">
				<view class="sss" v-for="(item,index) in list1" :key="index">
					<text :class="index == inx? 'active':''" @click="isTaggle(index)">{{item}}</text>
				</view>
			</view>
			<view class="describe_ntm flex_c" v-if="inx == 0">
				<rich-text class="quanyi" :nodes="nodeCentent"></rich-text>
			</view>
			<view class="equity_box qyi_box flex_Z" v-if="inx == 1">
				<view class="equity color1 flex_Z">
		
					<view class="equity_list bor_btm flex_dq">
						<rich-text class="quanyi_s" :nodes="nodeCentent2"></rich-text>
					</view>
				</view>
			</view>

		</view> -->
		<view class="notice_box flex_ZC">
			<view class="notice flex_c">
				<text class="tiao"></text>
				<text>购买需知</text>
				<text class="tiao"></text>
			</view>
			<view class="xuzhi">
				<rich-text class="f24 colors" :nodes="nodeCentent4"></rich-text>
			</view>
		</view>
		<view class="technology flex_c">
			<image src="../../static/image/thl.png" mode=""></image>
		</view>
		<view class="buy_btn flex_ld_a">
			<text v-if="infoDetail.is_hold" class="sells" @click="isSell(infoDetail.id)">出售</text>
			<view v-if="goumai">
				<view class="submit  bgs flex_ld_b" @click="submitPay" v-if="infoDetail.status == 2">
					<image src="../../static/icon/i_money.png" mode=""></image>
					<text>{{totalPrice}}</text>
					<u-line direction="col" color="#ffffff" length="45%"></u-line>
					<text>立即支付</text>
				</view>
			</view>

			<view class="submit no_bgs flex_ld_b" v-if="infoDetail.status != 2 && !goumai">
				<text>{{infoDetail.status_desc}}</text>
				<view class="" v-if="infoDetail.status == 1">
					<u-count-down class="c0" :time="countdownTime" format="HH:mm:ss" @finish="isFinish"></u-count-down>
				</view>
			</view>
		</view>

		<view class="empty3"></view>

		<!-- 支付弹窗 -->
		<u-popup :show="showPay" @close="showPay = false" closeable bgColor="transparent">
			<view class="pay flex_ZC">
				<text>购买信息</text>
				<view class="pay_box flex_Z">
					<view class="pay_box_c flex_ld">
						<text class="c6">藏品名称</text>
						<text class="c3">{{infoDetail.goods_name}}</text>
					</view>
					<view class="pay_box_c flex_ld">
						<text class="c6">购买数量</text>
						<view v-if="infoDetail.status == 2 && infoDetail.limit_num>infoDetail.stock">
							<u-number-box integer :min="1" :max="infoDetail.stock" button-size="36" color="#ffffff"
								bgColor="#2E2A56" iconStyle="color: #ffffff" v-model.trim="numbers" disabledInput
								@overlimit="overLimits2"></u-number-box>
						</view>
						<view v-else-if="infoDetail.status == 2 && infoDetail.limit_num != 0">
							<u-number-box integer :min="1" :max="infoDetail.limit_num" button-size="36" color="#ffffff"
								bgColor="#2E2A56" iconStyle="color: #ffffff" v-model.trim="numbers"
								@overlimit="overLimits"></u-number-box>
						</view>
						<view v-else-if="infoDetail.status == 2 && infoDetail.limit_num == 0">
							<u-number-box integer :min="0" :max="0" button-size="36" color="#ffffff" bgColor="#2E2A56"
								iconStyle="color: #ffffff" v-model.trim="numbers" @overlimit="overLimit"></u-number-box>
						</view>
					</view>
					<view class="pay_money  flex_ld">
						<text class="c6">应支付金额</text>
						<view class=" flex_dq">
							<image class="pay_img" src="../../static/icon/i_money.png" mode=""></image>
							<text class="c5 go_pay">{{totalPrice}}</text>
						</view>
					</view>
				</view>
				<view class="buy_box" v-if="goumai">
					<view class="buyNow flex_c" @click="goPay" v-if="infoDetail.limit_num != 0&& infoDetail.stock>0">
						<image class="highlights" src="../../static/image/mask.png" mode=""></image>
						<text>立即购买</text>
					</view>
					<view class="nobuyNow flex_c" v-if="infoDetail.stock== 0">
						<text>已售罄</text>
					</view>
					<view class="nobuyNow flex_c" v-if="infoDetail.limit_num == 0 && infoDetail.stock>0">
						<text>超出限购上限</text>
					</view>

				</view>
				<view class="nobuyNow" v-else>
					<text>还有</text>
					<u-count-down class="c0" :time="countdownTime" format=" HH:mm:ss" @finish="isFinish"></u-count-down>
					<text>可购买</text>
				</view>
			</view>
		</u-popup>

		<u-popup :show="tipShow" mode="center" @close="tipShow = false" closeable bgColor="transparent">
			<view class="prompt flex_ZC">
				<text class="f36">提示</text>
				<text v-if="parityBit == 'smrz'" class="prompt_tit">请先实名认证</text>
				<text v-if="parityBit == 'jymm'" class="prompt_tit">未设置交易密码</text>
				<text v-if="parityBit == 'gmmy'" class="prompt_tit">{{remind}}</text>
				<text v-if="parityBit == 'other'" class="prompt_tit">{{remind}}</text>
				<text v-if="parityBit == 'hxf'" class="prompt_tit">{{remind}}</text>
				<view class="prompt_ntm" v-if="parityBit != 'other'" @click="goNixtPage">
					<text>现在就去</text>
				</view>
				<view class="prompt_ntm" v-if="parityBit == 'other'" @click="tipShow = false">
					<text>关闭</text>
				</view>
				<view class="empty"></view>
			</view>
		</u-popup>
	</view>
</template>

<script>
	import {
		getuserinfo,
		memberBalance
	} from "../../api/index.js";
	import {
		hatchGoodsInfo,
		secretHatchGoods,
		rentHatchGoodsInfo,
		rentCreateHatchOrder
	} from "../../api/store.js";
	export default {
		data() {
			return {
				inx: 0,
				ids: '', //藏品id
				pid: '',
				Keys: '', //秘钥id
				isPay: '', //是否设置交易密码
				realName: '', //是否实名认证
				parityBit: '',
				numbers: 1, //数量
				navIds: 1,
				pinpaiId: '', //品牌id
				threeMoxing: '', //3D模型
				productName: '', //商品名称
				remind: '', //是否允许购买提示词
				// allowPurchases:false,//是否允许购买拦截
				tipShow: false, //提示弹窗
				allowPay: false, //是否允许购买
				showWant: false, //弹窗
				showPay: false, //支付弹窗
				duoxuan: false, //切换多选
				taggle: false, // 价格升降
				goumai: false,
				infoDetail: {}, //商品信息
				nodeCentent: '', //富文本
				nodeCentent2: '', //富文本
				nodeCentent3: '',//富文本
				nodeCentent4: '',//富文本
				countdownTime: 1000, //开始时间
				titles: '', //标题
				backgroundColor: "transparent", //标题背景颜色
				list1: ['藏品描述', '权益介绍'],
				navberlist: [{
						id: 1,
						name: '集售信息'
					},
					// {
					// 	id: 2,
					// 	name: '集售历史'
					// },

					{
						id: 3,
						name: "产品描述"
					}
				],
				chartData: {},
				opts: {
					color: ["#0bb4c9", "#ef8c0b", "#EE6666", "#73C0DE", "#3CA272", "#FC8452", "#9A60B4", "#ea7ccc"],
					padding: [15, 10, 0, 15],
					dataLabel: false,
					dataPointShape: false,
					enableScroll: false,
					legend: { //标题
						show: false,
					},
					xAxis: { //X轴
						axisLine: false,
						disabled: false,
						disableGrid: true,
					},
					yAxis: { //Y轴
						gridType: "dash",
						dashLength: 2,
						disabled: false,
						disableGrid: true,
						data: [{
							min: 0,
							axisLine: false,
						}]
					},
					extra: { //其他配置
						line: {
							type: "curve",
							width: 2,
							activeType: "hollow",
							onShadow: true,
							animation: "horizontal"
						},
					}
				}
			}
		},
		onReady() {},
		onLoad(e) {
			console.log(e);
			this.ids = e.id
			this.pid = e.pid
		},
		onShow(e) {
			// 每次到详情关闭所有弹窗
			this.tipShow = false
			this.allowPay = false
			this.showPay = false
			this.realName = uni.getStorageSync("realName")
			this.isPay = uni.getStorageSync("ispay")
			this.isGoodsInfo()
		},
		computed: {
			// 计算总价
			totalPrice() {
				return (this.numbers * this.infoDetail.price).toFixed(2)
			},
		},
		methods: {
			// 动态计算字体大小
			checkLength(v) {
				const realLength = v.length;
				return realLength;
			},
			// 集售信息切换
			changeNav(id) {
				this.navIds = id
			},
			// 用户信息
			getuser() {
				memberBalance().then(res => {
					console.log(res)
					this.isPay = res.data.is_pay
					this.realName = res.data.is_real
				})
			},
			isFinish() {
				console.log('倒计时结束');

				if (this.infoDetail.status == 1) {
					this.goumai = true
					this.infoDetail.status = 2
					console.log(this.infoDetail.status, "状态");
				}
			},
			// 初始化详情
			isGoodsInfo() {
				let data = {
					id: this.pid,
				};
				rentHatchGoodsInfo(data).then(res => {
					console.log(res);
					if (res.code == 1) {
						this.pinpaiId = res.data.brand_id
						this.infoDetail = res.data
						this.productName = res.data.goods_name
						const regex = new RegExp('<img', 'gi');
						if (res.data.content) {
							var htmlContent = res.data.content
							htmlContent = htmlContent.replace(regex, `<img style="max-width: 100%;"`)
							this.nodeCentent = htmlContent;
						}
						if (res.data.info) {
							var htmlContent2 = res.data.info
							htmlContent2 = htmlContent2.replace(regex, `<img style="max-width: 100%;margin:6px 0"`)
							this.nodeCentent2 = htmlContent2;
						}
						if (res.data.goods_details) {
							var htmlContent3 = res.data.goods_details
							htmlContent3 = htmlContent3.replace(regex, `<img style="max-width: 100%;margin:6px 0"`)
							this.nodeCentent3 = htmlContent3;
						} else {
							this.navberlist.pop()
						}
						if (res.data.purchase_info) {
							var htmlContent4 = res.data.purchase_info
							htmlContent4 = htmlContent4.replace(/\r\n/g,"<p/>");
							this.nodeCentent4 = htmlContent4;
						}
						
						this.threeMoxing = res.data.three_d
						if (res.data.status == 1) {
							this.countdownTime = res.data.remaining_time * 1000
							// this.countdownTime = 5000
						} else if (res.data.status == 2) {
							this.goumai = true
						} else {
							this.goumai = false
						}

						let listssss = {
							categories: [],
							series: [{
								name: "当前价格",
								setShadow: [6, 16, 20, "#0bb4c9"],
								data: []
							}, ]
						};
						// listssss.categories = res.data.history_price_data.time
						// listssss.series[0].data = res.data.history_price_data.price
						this.chartData = JSON.parse(JSON.stringify(listssss));
						console.log(this.chartData);

					}
				})
			},
			isTaggle(index) {
				this.inx = index
			},
			// isFinish(){
			// 	console.log(1111);
			// 	this.goumai = true
			// },
			// 页面滚动
			onPageScroll: function(e) {
				const scrollTop = e.scrollTop; // 获取页面滚动位置
				// 根据滚动位置修改状态栏样式
				if (scrollTop > 100) {
					this.backgroundColor = '#E0DDDA';
					this.titles = '详情';
				} else {
					this.backgroundColor = 'transparent';
					this.titles = '';
				}
				// console.log("滚动距离为：" + e.scrollTop);
			},
			overLimits() {
				uni.$u.toast('超出购买上限');
			},
			overLimits2() {
				if (this.infoDetail.stock == 0) {
					uni.$u.toast('当前藏品已售罄');
				} else {
					uni.$u.toast('当前库存仅剩' + this.infoDetail.stock);
				}


			},
			// 步进器
			overLimit(e) {
				// console.log(e);
				if (e == 'plus') {
					uni.$u.toast('超出限购数量');
				} else {
					uni.$u.toast('最少限购1个');
				}
			},
			isSell(id) {
				uni.navigateTo({
					url: '/pagesMy/mallCenter/bulkSales?id=' + id
				})
			},

			// 立即支付
			submitPay() {
				// 没有实名认证
				console.log(this.realName);
				if (!this.realName) {
					this.tipShow = true
					this.parityBit = 'smrz'
					return;
				}
				// 没有设置交易密码
				if (!this.isPay) {
					this.tipShow = true
					this.parityBit = 'jymm'
					return;
				}
				this.showPay = true
			},
			// 拦截校验
			goNixtPage() {

				if (this.parityBit == 'jymm') { // 未设置交易密码
					uni.navigateTo({
						url: '/pagesMy/setting/amendsafepassword?first=' + 'first'
					})
				} else if (this.parityBit == 'smrz') { // 未实名
					uni.navigateTo({
						url: '/pagesMy/setting/realNameAuthentication'
					})
				} else if (this.parityBit == 'gmmy') {
					// 购买身份卡牌
					uni.navigateTo({
						url: '/pagesMy/brandCenter/numbercard?id=' + this.pinpaiId
					})
				}else if(this.parityBit=="hxf"){
					uni.navigateTo({
						url:"/pagesMy/mallCenter/productDetails?id="+this.infoDetail.hatch_goods_market_condition.goods_id
					})
				}
			},
			// 立即购买
			goPay() {
				if (this.infoDetail.stock == 0) {
					uni.$u.toast("当前藏品已售罄")

				}else if(this.infoDetail.is_condition_buy==0){
						this.remind="您还没有"+this.infoDetail.hatch_goods_market_condition.goods_name
						this.parityBit = 'hxf'
						this.tipShow=true
						this.showPay=false
				} else{
					let productCacheInfo = {
						productType:5,
						pid:this.pid,
						number:this.numbers,
						allMoney:this.totalPrice,
						pinpaiId:this.pinpaiId,
						notice:this.infoDetail.purchase_info,
						goodsId:this.infoDetail.goods_id,
					}
					uni.setStorageSync("productCacheInfo", productCacheInfo)
					uni.navigateTo({
						url: '/pagesMy/brandCenter/paymentCenter'
					})
				}
			},
		},
	}
</script>

<style scoped>
	@font-face {
		font-family: 'iconfont2';
		src: url("~@/iconfont/YouSheBiaoTiHei.ttf");
	}


	.commodity {
		width: 690rpx;
		margin: 0 auto;
		margin-top: -90rpx;
	}

	.commodity_top {
		position: relative;
		width: 92%;
		height: 580rpx;
		/* background: url(../../static/image/bg11.png); */
		/* background-size: 100% 100%; */
		margin: 0 auto;
		z-index: 7;
	}

	.tupians {
		position: absolute;
		top: 20rpx;
		left: 50%;
		width: 100%;
		height: 560rpx;
		transform: translateX(-50%);
		z-index: 9;
	}

	.commodity_btm {
		position: relative;
		width: 532rpx;
		height: 282rpx;
		background: url(../../static/image/bg12.png);
		background-size: 100% 100%;
		color: #ffffff;
		margin: 0 auto;
		z-index: 6;
	}

	.commodity_btm_box {
		/* width: 58%; */
		margin-top: 80rpx;
		z-index: 99;
	}

	.commodity_name {
		margin-bottom: 30rpx;
		text-align: center;
		margin-top: 20rpx;
	}

	.names {
		font-size: 36rpx;
		color: #9E845F;
	}

	.namess {
		font-size: 30rpx;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		overflow: hidden;
		color: #9E845F;
	}

	.series_box {
		background: #C3B39F;
		font-size: 20rpx;
		padding-right: 6rpx;
		color: #Ffffff;
		margin: 0 10rpx;
	}

	.series_box>text:nth-child(1) {
		font-size: 22rpx;
		padding: 6rpx 10rpx;
		border-radius: 10rpx;
		background: #A68A64;
		margin-right: 8rpx;
		color: #Ffffff;
	}

	.issuer {
		width: 690rpx;
		margin: 0 auto;
		z-index: 99;
	}

	.issuer_box {
		width: 100%;
		border-radius: 20rpx;
		background: #F2F2F2;
		padding: 16rpx 0;
	}

	.issuer_box>image {
		width: 76rpx;
		height: 76rpx;
		border-radius: 50%;
		margin: 0 26rpx;
	}

	.issuer_btm {
		width: 78%;
	}

	.issuer_btm>text:nth-child(2) {
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		overflow: hidden;
	}


	.qushi {
		width: 40rpx !important;
		height: 40rpx !important;
	}

	.describe_box {
		width: 690rpx;
		margin: 0 auto;
		background: #221B32;
		padding-bottom: 40rpx;
		border-radius: 20rpx;
	}

	.describe_tit {
		width: 636rpx;
		margin: 40rpx auto;
		padding-top: 50rpx;
		border-radius: 20rpx 20rpx 0 0;

	}

	.sss>text {
		margin-right: 50rpx;
		font-size: 36rpx;
		color: #A7A4AD;
	}

	.describe_ntm {
		width: 690rpx;
		min-height: 100rpx;
		/* max-height: 1200rpx; */
		margin: 0 auto;
	}

	.active {
		color: #8C7554 !important;
		font-weight: 700;
	}

	.qyi_box {
		background: #15120D;
	}

	.qyi {
		background: #29231E;
	}

	.ys_box {
		background: #150D10;
	}

	.yshou {
		background: #271E29;
	}

	.color1 {
		color: #D8BB8C;
	}

	.color2 {
		color: #CF8CD8;
	}

	.equity_box {
		width: 638rpx;
		margin: 24rpx auto 0;
	}

	.equity {
		width: 100%;
		font-size: 32rpx;
	}

	.equity_top {
		width: 100%;
		height: 86rpx;
		line-height: 86rpx;
		padding-left: 24rpx;
	}

	.equity_list {
		width: 100%;
		/* min-height: 200rpx; */
		/* max-height: 500rpx; */
	}

	.bor_btm {
		border-bottom: 1rpx solid #29231E;
	}

	.bor_r {
		border-right: 1rpx solid #29231E;
	}

	.equity_list>text:nth-child(1) {
		width: 35%;
		height: 86rpx;
		line-height: 86rpx;
		padding-left: 24rpx;
		font-size: 28rpx;
	}

	.equity_list>text:nth-child(2) {
		width: 65%;
		margin-left: 24rpx;
		font-size: 24rpx;
	}

	.equity_list_s>text:nth-child(1) {
		width: 35%;
		height: 86rpx;
		line-height: 86rpx;
		padding-left: 24rpx;
		font-size: 28rpx;
	}

	.equity_list_s>text:nth-child(2) {
		width: 30%;
		margin-left: 24rpx;
		font-size: 24rpx;
	}

	.equity_list_s>text:nth-child(3) {
		width: 35%;
		margin-left: 24rpx;
		font-size: 24rpx;
	}

	.quanyi {
		width: 92%;
		overflow: hidden;
		color: #666666;
		font-size: 24rpx;
		line-height: 1.6;
	}

	.quanyi_s {
		color: #666666;
		line-height: 1.6;
		width: 100%;
		overflow: hidden;
		font-size: 24rpx;
		padding: 20rpx 30rpx;
	}

	.notice_box {
		width: 690rpx;
		background: #F2F2F2;
		border-radius: 20rpx;
		margin: 24rpx auto;
		padding-bottom: 20rpx;
	}

	.notice {
		width: 100%;
		padding: 20rpx 0;
	}

	.notice>text:nth-child(2) {
		font-size: 36rpx;
		color: #A68A64;
		font-family: 'iconfont2';
		margin: 0 24rpx;
	}

	.tiao {
		width: 154rpx;
		height: 6rpx;
		background: linear-gradient(274deg, #AB8E68, #D7BA93);
		border-radius: 4rpx;
	}

	.xuzhi {
		padding: 0 50rpx;
		overflow: auto;
	}

	.colors {
		color: #666666;
		line-height: 1.6;
	}

	.technology {
		width: 100%;
		/* background: pink; */
	}

	.technology>image {
		width: 70%;
		height: 60rpx;
	}

	.buy_btn {
		position: fixed;
		bottom: 0;
		width: 100%;
		height: 152rpx;
		background: #ffffff;
	}

	.buy_btn>text {
		width: 224rpx;
		height: 76rpx; 
		line-height: 76rpx;
		border-radius: 36rpx;
		border: 1rpx solid #D7BA93;
		font-size: 32rpx;
		text-align: center;
		color: #666666;
	}


	.submit {
		width: 348rpx;
		height: 88rpx;
		border-radius: 40rpx;
		/* margin-right: 30rpx; */
	}

	.bgs {
		background: linear-gradient(274deg, #AB8E68, #D7BA93);
	}

	.no_bgs {
		background: linear-gradient(274deg, #ab9880, #d7c4aa);
	}

	.no_bgs>text {
		color: #ffffff50 !important;
	}

	.submit>text {
		line-height: 76rpx;
		border-radius: 36rpx;
		font-size: 32rpx;
		text-align: center;
		color: #ffffff;
	}

	.submit>image {
		width: 36rpx;
		height: 36rpx;
	}


	.pay {
		width: 100%;
		background: #E0DDDA;
		border-radius: 20rpx 20rpx 0 0;
		color: #ffffff;
		overflow: auto;
	}

	.pay>text {
		font-size: 36rpx;
		margin: 60rpx 0;
		color: #333333;
	}

	.pay_box {
		width: 694rpx;
		/* height: 300rpx; */
		background: #ffffff;
		border-radius: 18rpx;
	}

	.pay_box_c {
		font-size: 24rpx;
		padding: 28rpx 28rpx 0;
	}


	.pay_box_c>text:nth-child(2) {
		width: 70%;
		text-align: right;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 1;
		overflow: hidden;
	}

	.pay_money {
		width: 92%;
		padding: 30rpx 0;
		margin: 30rpx auto 0;
		font-size: 24rpx;
		border-top: 1rpx solid #ffffff20;
	}

	.pay_img {
		width: 32rpx;
		height: 32rpx;
	}

	.rough {
		width: 60%;
		/* background: pink; */
	}

	.go_pay {
		font-size: 36rpx;
		font-family: 'iconfont2';
		margin-left: 10rpx;
	}

	.buy_box {
		width: 100%;
	}

	.buyNow {
		position: relative;
		width: 92%;
		margin: 50rpx auto;
	}

	.buyNow>text {
		text-align: center;
		width: 100%;
		background: linear-gradient(274deg, #AB8E68, #D7BA93);
		color: #ffffff;
		font-size: 32rpx;
		padding: 20rpx 0;
		border-radius: 40rpx;
	}

	.nobuyNow {
		display: flex;
		align-items: center;
		justify-content: center;
		position: relative;
		width: 92%;
		margin: 50rpx auto;
		padding: 20rpx 0;
		border-radius: 40rpx;
		background: linear-gradient(274deg, #AB8E68, #D7BA93);
		opacity: 0.5;
	}

	.nobuyNow>text {
		margin: 0 10rpx;
	}

	.prompt {
		width: 600rpx;
		background: #E0DDDA;
		margin: 0 auto;
		border-radius: 20rpx;
		padding-top: 30rpx;
	}

	.prompt>text {
		margin-top: 40rpx;
	}

	.prompt_tit {
		margin: 0 30rpx;
		font-size: 28rpx;
		color: #666666;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		overflow: hidden;
	}

	.prompt_ntm {
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 30rpx;
		width: 414rpx;
		height: 72rpx;
		line-height: 72rpx;
		background: linear-gradient(274deg, #AB8E68, #D7BA93);
		border-radius: 28rpx;
		margin-top: 80rpx;
		color: #ffffff;
	}

	.navbar {
		width: 690rpx;
		background: #F2F2F2;
		margin: 30rpx auto;
		border-radius: 20rpx;
	}

	.navbar_top {
		padding: 26rpx;
	}

	.navbar_box>text {
		font-size: 32rpx;
		color: #999999;
		margin-right: 42rpx;
	}

	.nava_active {
		color: #A68A64 !important;
		font-weight: 700;
	}

	.sales_box {
		margin-top: 30rpx;
	}

	.sales {
		padding: 0 26rpx;
		font-size: 26rpx;
		color: #666666;
		margin-bottom: 26rpx;
	}

	.chartu {
		padding-bottom: 20rpx;
	}

	.charts-box {
		width: 100%;
		height: 400rpx;
	}


	/deep/.u-number-box__minus {
		background: #d7c4aa !important;
	}

	/deep/.u-number-box__plus {
		background: #d7c4aa !important;
	}

	/deep/.u-count-down__text {
		color: #ffffff !important;
		opacity: 0.5;
	}

	/deep/.u-number-box__input {
		background: #d7c4aa !important;
	}
</style>